﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Tracy.DataModel;
using System.Diagnostics;
using SharedLib;
using System.Threading;
using Tracy;


namespace TracyConsole
{
    class Program
    {
        ///// <summary>
        ///// Build LParam for WM_KEYDOWN / WM_KEYUP
        ///// </summary>
        ///// <param name="virtualKey"></param>
        ///// <param name="flag"></param>
        ///// <returns></returns>
        //private static uint MakeKeyLParam(int virtualKey, int flag)
        //{
        //    uint rtn;

        //    if (flag == Win32Helper.WM_KEYDOWN)
        //    {
        //        rtn = 0x00000000;
        //    }
        //    else
        //    {
        //        rtn = 0xC0000000;
        //    }
        //    //Scan Code
        //    int scanCode = Win32Helper.MapVirtualKey(virtualKey, 0);

        //    rtn = (uint)(rtn + scanCode * 0x10000 + 0x1);
        //    return rtn;
        //}
        //enum MouseEventFlag : uint
        //{
        //    Move = 0x0001,
        //    LeftDown = 0x0002,
        //    LeftUp = 0x0004,
        //    RightDown = 0x0008,
        //    RightUp = 0x0010,
        //    MiddleDown = 0x0020,
        //    MiddleUp = 0x0040,
        //    XDown = 0x0080,
        //    XUp = 0x0100,
        //    Wheel = 0x0800,
        //    VirtualDesk = 0x4000,
        //    Absolute = 0x8000
        //}

        static void Main(string[] args)
        {
            //Thread t = new Thread(new ThreadStart(() =>
            //{
            //    Tracy.Plugins.DownloadAdapters.MonoTorrentAdapter adapter = new Tracy.Plugins.DownloadAdapters.MonoTorrentAdapter();
            //    Resource res = new Resource();
            //    res.Url = "http://auto.dl.bt.ktxp.com/down/1332899082/5f2a31dde038a85b0c6e44afad1e70984e119e8e.torrent";
            //    adapter.Download(res, "C:\\Temp", true);
            //}));
            //t.Start();
            //Console.Read();

            //Tracy.Plugins.DownloadAdapters.UTorrentAdapter adapter = new Tracy.Plugins.DownloadAdapters.UTorrentAdapter();
            //var result = adapter.GetSettings();
        }

    }
}
